const KoaRouter = require("@koa/router");

const userRouter = new KoaRouter({ prefix: "/users" });

userRouter.get("/", (ctx, next) => {
  ctx.body = "user list data~";
});

userRouter.get("/:id", (ctx, next) => {
  ctx.body = "user detail data~";
});

userRouter.post("/", (ctx, next) => {
  ctx.body = "create user success~";
});

userRouter.patch("/:id", (ctx, next) => {
  ctx.body = "update user success~";
});

userRouter.delete("/:id", (ctx, next) => {
  ctx.body = "delete user success~";
});

module.exports = userRouter;
